package cn.log.collect.service;

import cn.log.collect.i.CollectService;
import cn.log.collect.pojo.Log;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * @author mr.ham
 * @date 2016/11/18 20:39
 */
@Service("collectService")
public class CollectServiceImpl implements CollectService{
    private static final Logger logger = LoggerFactory.getLogger(CollectServiceImpl.class);
    @Override
    public void collect(Log log) {
        logger.debug("正在收集日志，内容如下：\n"+log.getContent());
        System.out.print("正在收集日志，内容如下：\n"+log.getContent());
    }
}